package com.jkgj.skykingkong.tms.application.command;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Size;

/**
 * @author Xuegui Yuan
 */
@Data
public class LoginCommand {
  @NotEmpty(message = "用户名不能为空")
  @Size(min = 6, max = 20, message = "用户名长度6到20")
  private String username;

  @NotEmpty(message = "密码不能为空")
  private String password;

  private boolean rememberMe;
}